/**
 * 将请求的参数转换成字符串
 */
export function getParamsSuffix(params) {
  const keys = Object.keys(params);
  const suffix = keys
    .filter(key => {
      return params[`${key}`] && params[`${key}`] != '';
    })
    .map(key => `${key}=${params[`${key}`]}`)
    .join('&');
  return suffix;
}
